package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.WxCommentCountBO;
import com.cskaoyan.bean.pojo.MarketStorage;
import com.cskaoyan.bean.vo.WxCommentListVO;
import com.cskaoyan.service.SystemService;
import com.cskaoyan.service.WxCommentService;
import com.cskaoyan.util.Constant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.UUID;

/**
 * @author Tang_XueCheng
 * @description 评论功能模块
 * @since 2022/04/08 21:13
 */
@RestController
@RequestMapping("wx")
public class WxCommentController {

    @Autowired
    WxCommentService wxCommentService;
    @Autowired
    SystemService systemService;

    @RequestMapping("comment/list")
    public BaseRespVo list(Integer valueId,Integer type, Integer limit, Integer page, Integer showType) {

        WxCommentListVO wxCommentListVO = wxCommentService.commentList(valueId,type,limit,page,showType);
        return BaseRespVo.ok(wxCommentListVO);
    }

    @RequestMapping("comment/count")
    public BaseRespVo count(Integer valueId,Integer type) {
        WxCommentCountBO wxCommentCountBO = wxCommentService.count(valueId,type);
        return BaseRespVo.ok(wxCommentCountBO);
    }

    /*@RequestMapping("comment/post")
    public BaseRespVo post(MultipartFile file) {

    }*/


}
